package com.service;

import com.github.pagehelper.PageInfo;
import com.pojo.Repairs;
import com.vo.RepairsVo;
import com.vo.repairsStateVo;

import java.util.List;

public interface RepairsService {
    /***
     * 查询所有报修
     * @param repairsVo
     * @return
     */
    public List<Repairs> selectReqairsByVo(RepairsVo repairsVo);

    /***
     * 添加报修
     * @param repairs
     * @return
     */
    public int addReqairs(Repairs repairs);

    public int updateState(repairsStateVo repairsStateVo);

    /***
     * 报修记录
     * @param repairsVo
     * @return
     */
    public PageInfo<Repairs> selectRecording(RepairsVo repairsVo);

    /***
     * 查询所有未完成的报修
     * @param repairsVo
     * @return
     */
    public PageInfo<Repairs> selectAllRepairs(RepairsVo repairsVo);

    /**
     * 查询所有报修任务（已派单）
     * @param repairsVo
     * @return
     */
    public PageInfo<Repairs> selectAllRepairsjob(RepairsVo repairsVo);
    public int updateRepairs(Repairs repairs);
    public int updateEmployee(repairsStateVo repairsStateVo);
    public PageInfo<Repairs> selectAllRepairing(RepairsVo repairsVo);
    public Repairs selectReparisDetails(Integer id);
    public PageInfo<Repairs> selectReparisByElefinishi(RepairsVo repairsVo);

    /**
     * 查询最近10条报修
     */
    public List<Repairs> selecttoptenrepairs();


}
